Skip to main content

Problems i struggled w

Write a function that takes in a Python list of linked lists and multiplies them element-wise. It should return a new linked list.

If not all of the Link objects are of equal length, return a linked list whose length is that of the shortest linked list given. You may assume the Link objects are shallow linked lists, and that lst_of_lnks contains at least one linked list. def multiply_lnks(lst_of_lnks):

Answer

![[chrome_DA9BoW94pK.png]]